package com.myproject.mall.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("scmall_collection_group")
@Schema(description = "用户收藏商品组")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CollectionGroup {
    @Schema(description = "收藏组ID")
    @TableId(value = "group_id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "收藏组名称")
    @TableId(value = "group_title")
    private String title;

    @Schema(description = "用户ID")
    @TableId(value = "group_user_id")
    private String userId;

    @Schema(description = "收藏组创建时间")
    @TableId(value = "group_create_time")
    private LocalDateTime createTime;
}
